import urllib.request as ur
response = ur.urlopen("http://placekitten.com/200/300")
cat_img = response.read()
with open('cat_200_300.jpg', 'wb') as f:
    f.write(cat_img)